package cn.tedu.demo.ex;

import cn.tedu.demo.web.ServiceCode;
import lombok.Getter;


public class ServiceException extends RuntimeException {

    @Getter
    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode,String message){
        super(message);//重写父类带message参数的构造方法
        this.serviceCode = serviceCode;
    }

}
